public class Rectangle {
    Point ptTopLeft;
    Point ptTopRight;
    int width;
    int height;

    public Rectangle() {

    }

    public Rectangle(Point topleft, int width, int height) {
        this.ptTopLeft = topleft;
        this.ptTopRight = new Point(topleft.x + width, topleft.y);
        this.width = width;
        this.height = height;
    }

    public double perimeter() {
        return 2 * (this.width + this.height);
    }

    public double area() {
        return this.width * this.height;
    }

    public void draw() {
        System.out.println("Top Left Point: (" + this.ptTopLeft.x + ", " + this.ptTopLeft.y + ")");
        System.out.println("Top Right Point: (" + this.ptTopRight.x + ", " + this.ptTopRight.y + ")");
        System.out.println("Width: " + this.width);
        System.out.println("Height: " + this.height);
        System.out.println("Perimeter: " + this.perimeter());
        System.out.println("Area: " + this.area());
    }
}
